<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/30
 * Time: 10:41
 */

namespace verdor\core;


class commonOrder extends order
{
    public function __construct($userid)
    {
        echo '<br />';
        echo 'common:';
        //继承父类构造函数并传值
        parent::__construct(0,$userid);
    }
    public function createOrder(){
        parent::createOrder();
        echo '0';
    }
    public static function pay(){
        parent::pay();
        echo ':微信支付<br />';
        /*
         * 调用父类里的静态属性
         */
        echo '支付时间:'.order::$time;
    }
    public function __destruct()
    {
        echo '<br />';
        echo 'commonOrder已清除';
        echo '<br />';
    }
}